package com.koala.design.watch;

/**
 * 观察者模式
 *
 * @author yantingrui
 * @date 2022/8/15   10:10
 */
public class WatcherInfo {
    public static void main(String[] args) {
        Subject tom = new Subject("Tom");
        tom.attach(new Watcher("father"));
        tom.attach(new Watcher("mother"));
        tom.setTodo("学习");
    }
}
